package com.twu.biblioteca.book;

public class Book {
    private String title;
    private boolean isReserved;
    private int id;

    public Book(String title, int id) {
        this.title = title;
        this.id = id;
        this.isReserved = false;
    }

    public void setReserve(boolean reserved) {
        this.isReserved = reserved;
    }

    public boolean isReserved() {
        return isReserved;
    }

    public int getId() {
        return id;
    }

    @Override
    public String toString(){
        return title;
    }
}
